import "@site/src/languages/highlight";

# Buffer Class

**Description:**

&emsp;&emsp;A class for creating Buffer object.

## __call

**Type:** Metamethod.

**Description:**

&emsp;&emsp;Creates a new buffer instance.

**Signature:**
```tl
metamethod __call: function(self: BufferClass, size: integer): Buffer
```

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| size | integer | The size of the buffer to create. |

**Returns:**

| Return Type | Description |
| --- | --- |
| Buffer | A new instance of the "Buffer" type with the given size. |